/**
 * 
 */
package cn.iune.erp.sale;

import java.math.BigDecimal;
import java.sql.Date;
import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.persistence.UniqueConstraint;
import javax.persistence.Version;

import com.justep.baas.data.RowState;

/**
 * @author Administrator
 *
 */



@Entity
@Table(name = "SaleOrder"
, uniqueConstraints = { 
	@UniqueConstraint(columnNames = { "orderNo", "enterpriseNo" }) 
}
)
@NamedQuery(name="SaleOrder.findAll", query="SELECT s FROM SaleOrder s")
public class SaleOrder {
	
	//定义常量
//	public static String PATH_DATA = "/sale/bSaleOrder/data";
//	public static String PATH_PROCESS = "/sale/bSaleOrder/process/order/orderProcess";

	@Id
	@Column(length=36)
	private String fID;
	
	@Column(length=4)
	private String orderType;
	@Column(length=10)
	private String orderTypeLabel;
	
	@Column(length=32)
	private String systemCode;
	@Column(length=4)
	private String billType;
	@Column(length=20)
	private String billTypeName;
	private Date orderDate;
	@Column(length=10)
	private String state = "active";
	@Column(length=10)
	private String status = "open";
	@Column(length=10)
	private String audit = "active";


	private int flowType = 0;
	private Date confirmDate;
	
	@Column(length=4)
	private String origin;//订单来源（XSYC：销售预测；SGLR：手工录入；WSSC:网上商城；SJSC:手机商城）
	@Column(length=20)
	private String originName;
	@Column(length=20)
	private String originNo;
	
	@Column(length=15)
	private String orderNo;
	
	@Column(length=32)
	private String factoryID;
	@Column(length=15)
	private String factoryNo;
	@Column(length=20)
	private String factoryName;
	
	@Column(length=3)
	private String storageTypeD;
	@Column(length=20)
	private String storageTypeDLabel;
	@Column(length=32)
	private String customerID;
	@Column(length=15)
	private String customerNo;
	@Column(length=20)
	private String shortName;
	@Column(length=128)
	private String customerName;
	
	@Column(length=3)
	private String storageType;
	@Column(length=20)
	private String storageTypeLabel;
	@Column(length=65)
	private String storageID;
	@Column(length=32)
	private String storageNo;
	@Column(length=20)
	private String storageName;
	@Column(length=128)
	private String floorNo;
	
	@Column(length=3)
	private String paymentTerm;//付款条件
	@Column(length=128)
	private String paymentTermLabel;
	@Column(length=3)
	private String currency;//币种
	@Column(length=20)
	private String currencyLabel;//币种
	@Column(precision=38,scale=6)
	private BigDecimal exchangeRate = BigDecimal.ZERO;//汇率
	private int printTimes = 0;//打印次数
	
	@Column(length=1)
	private String invoiceCategory;
	@Column(length=20)
	private String invoiceCategoryLabel;

	@Column(length=1)
	private String settleCategory;
	@Column(length=20)
	private String settleCategoryLabel;
	
	private int taxType = 1;
	@Column(length=10)
	private String taxTypeLabel = "1.应税内含";
	@Column(precision=10,scale=2)
	private BigDecimal taxRate = BigDecimal.ZERO;
	
	@Column(precision=10,scale=2,columnDefinition="DECIMAL(10,2) default 0")
	private BigDecimal depositRate = BigDecimal.ZERO;//预收定金比例
	
	//整单折扣--销售费用（orderAmountTotal是已经减掉discountAmount之后的金额）
	//整单折扣--通过折扣券计算出来的折扣金额使用这个值，而不使用下面的discountRate
	@Column(precision=38,scale=2,columnDefinition="DECIMAL(38,2) default 0")
	private BigDecimal discountAmount = BigDecimal.ZERO;

	//整单折扣率（同步修改明细表中的折扣率为该值，与折扣券的折扣率无关）
	@Column(precision=10,scale=2,columnDefinition="DECIMAL(10,2) default 1",nullable=false)
	private BigDecimal discountRate = BigDecimal.ONE;
	
	//代金券--财务费用（将这一列与下面的discountCash列合并）
	//无论是否代金券产生的现金折扣还是手工录入的现金折扣都加起来放在下面的一列
//	@Column(precision=38,scale=2,columnDefinition="DECIMAL(38,2) default 0")
//	private BigDecimal voucherAmount = BigDecimal.ZERO;
	
	//现金折扣：当面付的时候（抹零）--财务费用
	@Column(precision=38,scale=2,columnDefinition="DECIMAL(38,2) default 0",nullable=false)
	private BigDecimal discountCash;	
	
	///////////////////最终应付金额//////////////////////////////////////
	//最终应付金额=orderAmountTotal-voucherAmount-discountCash

	@Column(precision=10,scale=2)
	private BigDecimal itemAmount = BigDecimal.ZERO;
	@Column(precision=38,scale=2)
	private BigDecimal orderAmount = BigDecimal.ZERO;
	@Column(precision=38,scale=2)
	private BigDecimal orderAmountOld = BigDecimal.ZERO;
	@Column(precision=38,scale=2)
	private BigDecimal orderAmountTax = BigDecimal.ZERO;
	@Column(precision=38,scale=2)
	private BigDecimal orderAmountTotal = BigDecimal.ZERO;

	@Column(precision=38,scale=2,columnDefinition="DECIMAL(38,2) default 0")
	private BigDecimal freightAmount = BigDecimal.ZERO;//运费
	
	//定金支付状态（按定金比例计算：支付金额=定金金额即完成支付）
	@Column(length=10)
	private String paymentStatus = "unpaid";
	@Column(length=20)
	private String paymentStatusLabel = "待支付";
	private Timestamp paidDatetime;
	
	//通过定金比率计算获得
//	@Transient
//	@Column(precision=38,scale=2,columnDefinition="DECIMAL(38,2) default 0",nullable=false)
//	private BigDecimal depositAmount = BigDecimal.ZERO;//预收定金金额=折后金额*预收定金比例
	
//	@Column(precision=38,scale=2,columnDefinition="DECIMAL(38,2) default 0",nullable=false)
//	private BigDecimal predictAmounting = BigDecimal.ZERO;//正在已收预收款款金额
	
//	@Column(precision=38,scale=2,columnDefinition="DECIMAL(38,2) default 0",nullable=false)
//	private BigDecimal discountCash = BigDecimal.ZERO;//现金折扣金额（抹零）

//	@Column(precision=38,scale=2,columnDefinition="DECIMAL(38,2) default 0",nullable=false)
//	private BigDecimal receiveCashAmount = BigDecimal.ZERO;//收到现金

	//实际已经支付金额
	@Column(precision=38,scale=2,columnDefinition="DECIMAL(38,2) default 0")
	private BigDecimal actualAmount = BigDecimal.ZERO;
	
//	@Transient
//	@Column(precision=38,scale=2)
//	private BigDecimal pendingAmount = BigDecimal.ZERO;//待收款金额=预收定金金额-已收预收款金额
	
	private Date requirementDate;

	@Column(precision=10,scale=2)
	private BigDecimal pickItemIng = BigDecimal.ZERO;//正在出库数量
	@Column(precision=10,scale=2)
	private BigDecimal pickItemAmount = BigDecimal.ZERO;//出库数量。可以用于判断整单出库是否完成
	
	@Column(length=20)
	private String orderSize;
	@Column(precision=10,scale=2)
	private BigDecimal orderWeight = BigDecimal.ZERO;
	
	@Column(length=20)
	private String projectNo;
	
	@Column(length=20)
	private String resultStatus = "待审核";

	@Column(length=64)
	private String sLoginName;//登录名

	@Column(length=32)
	private String ssID;
	//门店流水号（客人流水号）
	@Column(length=20)
	private String guestNumber;

	@Column(length=20)
	private String contacts;
	@Column(length=20)
	private String mobilePhone;
	@Column(length=20)
	private String fPhone;
	
	@Column(length=32)
	private String fAddressID;
	@Column(length=50)
	private String fAddressName;//自提点儿
	@Column(length=255)
	private String fAddress;//所在地区
	@Column(length=128)
	private String fAddressDetail;//详细地址
	
	@Column(length=50)
	private String fProvince;
	@Column(length=50)
	private String fCity;
	@Column(length=50)
	private String fZone;
	///////////////////////////////////////////////////////
	
	@Column(columnDefinition="INT default 0",nullable=false)
	private int retailFlag = 0;//批发还是零售（0：批发，1：零售）
	
	@Column(columnDefinition="INT default 0",nullable=false)
	private int packFlag = 0;//是否打包（0：不打包，1：打包）
	
	@Column(columnDefinition="INT default 0",nullable=false)
	private int isNeedLogistics = 0;//是否需要物流（0：不需要，1：需要）
	
	private int detailsCount = 0;
	private int detailsCountState = 0;
	
	private int maxDetailNo = 0;

//	@Column(length=32)
//	private String departmentNo;
//	@Column(length=128)
//	private String departmentName;
	@Column(length=256)
	private String employeeNo;
	@Column(length=256)
	private String employeeName;
	
	
	@Column(length=1024)
	private String attachments ;
	

	/*
	正常订单状态
	预付款订单	订单提交（0）	支付全款（1）	发往仓库（2）	正在拣货（3）	拣货完成（4）	开票完成（5）	发货完成（6）	买家收货（7）				核销完成（9）
	预付定金		订单提交（0）	支付定金（1）	发往仓库（2）	正在拣货（3）	拣货完成（4）	开票完成（5）	发货完成（6）	买家收货（7）	支付余款（8）	核销完成（9）
	货到付款		订单提交（0）				发往仓库（2）	正在拣货（3）	拣货完成（4）	开票完成（5）	发货完成（6）	买家收货（7）	支付货款（8）	核销完成（9）
	注：如果是客户自提，则忽略发货和收货环节，直接到达核销完成。
	订单取消：
	Status列:cancel
	*/

	//待提交（-2），待审核（-1），订单提交-已审核（0）
	private int orderStatus = -2;
	@Column(length=10)
	private String orderStatusLabel = "待提交";//网上订单处理


	@Column(length=255)
	private String comments;
	
	@Column(length=15)
	private String cUsercode;
	@Column(length=20)
	private String cUsername;//制单人
	private Timestamp cDatetime;
	@Column(length=15)
	private String tUsercode;
	@Column(length=20)
	private String tUsername;//审核人
	private Timestamp tDatetime;
	@Column(length=15)
	private String eUsercode;
	@Column(length=20)
	private String eUsername;//关单人
	private Timestamp eDatetime;
	
	@Column(length=65)
	private String userId;

	@Column(length=128)
	private String enterpriseNo;
	@Column(length=128)
	private String enterpriseName;

	@Version
	private int version = 0;
	
	@Transient//非持久字段
	private RowState rowState;
	public RowState getRowState() {
		return rowState;
	}
	public void setRowState(RowState rowState) {
		this.rowState = rowState;
	}
	
	public int getVersion() {
		return version;
	}

	public void setVersion(int version) {
		this.version = version;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public Date getOrderDate() {
		return orderDate;
	}
	public void setOrderDate(Date orderDate) {
		this.orderDate = orderDate;
	}
	public String getState() {
		return state;
	}
	public void setState(String state) {
		this.state = state;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public int getTaxType() {
		return taxType;
	}
	public void setTaxType(int taxType) {
		this.taxType = taxType;
	}
	public String getTaxTypeLabel() {
		return taxTypeLabel;
	}
	public void setTaxTypeLabel(String taxTypeLabel) {
		this.taxTypeLabel = taxTypeLabel;
	}
	public BigDecimal getTaxRate() {
		return taxRate;
	}
	public void setTaxRate(BigDecimal taxRate) {
		this.taxRate = taxRate;
	}
	public String getOrigin() {
		return origin;
	}
	public void setOrigin(String origin) {
		this.origin = origin;
	}
	public String getOriginName() {
		return originName;
	}
	public void setOriginName(String originName) {
		this.originName = originName;
	}
	public String getOriginNo() {
		return originNo;
	}
	public void setOriginNo(String originNo) {
		this.originNo = originNo;
	}
	public String getFactoryNo() {
		return factoryNo;
	}
	public void setFactoryNo(String factoryNo) {
		this.factoryNo = factoryNo;
	}
	public String getFactoryName() {
		return factoryName;
	}
	public void setFactoryName(String factoryName) {
		this.factoryName = factoryName;
	}
	public BigDecimal getOrderWeight() {
		return orderWeight;
	}
	public void setOrderWeight(BigDecimal orderWeight) {
		this.orderWeight = orderWeight;
	}
	public String getOrderSize() {
		return orderSize;
	}
	public void setOrderSize(String orderSize) {
		this.orderSize = orderSize;
	}
	public String getBillType() {
		return billType;
	}

	public void setBillType(String billType) {
		this.billType = billType;
	}

	public String getBillTypeName() {
		return billTypeName;
	}

	public void setBillTypeName(String billTypeName) {
		this.billTypeName = billTypeName;
	}
	
	public String getCustomerNo() {
		return customerNo;
	}
	public void setCustomerNo(String customerNo) {
		this.customerNo = customerNo;
	}
	public String getShortName() {
		return shortName;
	}
	public void setShortName(String shortName) {
		this.shortName = shortName;
	}
	public String getCustomerName() {
		return customerName;
	}
	public void setCustomerName(String customerName) {
		this.customerName = customerName;
	}
	public String getEnterpriseNo() {
		return enterpriseNo;
	}
	public void setEnterpriseNo(String enterpriseNo) {
		this.enterpriseNo = enterpriseNo;
	}
	public String getEnterpriseName() {
		return enterpriseName;
	}
	public void setEnterpriseName(String enterpriseName) {
		this.enterpriseName = enterpriseName;
	}
	public String getcUsercode() {
		return cUsercode;
	}
	public void setcUsercode(String cUsercode) {
		this.cUsercode = cUsercode;
	}
	public String getcUsername() {
		return cUsername;
	}
	public void setcUsername(String cUsername) {
		this.cUsername = cUsername;
	}
	public Timestamp getcDatetime() {
		return cDatetime;
	}
	public void setcDatetime(Timestamp cDatetime) {
		this.cDatetime = cDatetime;
	}
	public String gettUsercode() {
		return tUsercode;
	}
	public void settUsercode(String tUsercode) {
		this.tUsercode = tUsercode;
	}
	public String gettUsername() {
		return tUsername;
	}
	public void settUsername(String tUsername) {
		this.tUsername = tUsername;
	}
	public Timestamp gettDatetime() {
		return tDatetime;
	}
	public void settDatetime(Timestamp tDatetime) {
		this.tDatetime = tDatetime;
	}
	public String geteUsercode() {
		return eUsercode;
	}
	public void seteUsercode(String eUsercode) {
		this.eUsercode = eUsercode;
	}
	public String geteUsername() {
		return eUsername;
	}
	public void seteUsername(String eUsername) {
		this.eUsername = eUsername;
	}
	public Timestamp geteDatetime() {
		return eDatetime;
	}
	public void seteDatetime(Timestamp eDatetime) {
		this.eDatetime = eDatetime;
	}
	public int getDetailsCount() {
		return detailsCount;
	}
	public void setDetailsCount(int detailsCount) {
		this.detailsCount = detailsCount;
	}
	public int getDetailsCountState() {
		return detailsCountState;
	}
	public void setDetailsCountState(int detailsCountState) {
		this.detailsCountState = detailsCountState;
	}
	public int getFlowType() {
		return flowType;
	}
	public void setFlowType(int flowType) {
		this.flowType = flowType;
	}
	public String getAudit() {
		return audit;
	}
	public void setAudit(String audit) {
		this.audit = audit;
	}
	public Date getConfirmDate() {
		return confirmDate;
	}
	public void setConfirmDate(Date confirmDate) {
		this.confirmDate = confirmDate;
	}
	public String getfID() {
		return fID;
	}
	public void setfID(String fID) {
		this.fID = fID;
	}
	public String getOrderNo() {
		return orderNo;
	}
	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}


	public BigDecimal getOrderAmount() {
		return orderAmount;
	}
	public void setOrderAmount(BigDecimal orderAmount) {
		this.orderAmount = orderAmount;
	}
	public BigDecimal getOrderAmountOld() {
		return orderAmountOld;
	}
	public void setOrderAmountOld(BigDecimal orderAmountOld) {
		this.orderAmountOld = orderAmountOld;
	}
	public BigDecimal getOrderAmountTax() {
		return orderAmountTax;
	}
	public void setOrderAmountTax(BigDecimal orderAmountTax) {
		this.orderAmountTax = orderAmountTax;
	}
	public BigDecimal getItemAmount() {
		return itemAmount;
	}
	public void setItemAmount(BigDecimal itemAmount) {
		this.itemAmount = itemAmount;
	}
	public BigDecimal getPickItemAmount() {
		return pickItemAmount;
	}
	public void setPickItemAmount(BigDecimal pickItemAmount) {
		this.pickItemAmount = pickItemAmount;
	}
	public BigDecimal getPickItemIng() {
		return pickItemIng;
	}
	public void setPickItemIng(BigDecimal pickItemIng) {
		this.pickItemIng = pickItemIng;
	}
	public BigDecimal getOrderAmountTotal() {
		return orderAmountTotal;
	}
	public void setOrderAmountTotal(BigDecimal orderAmountTotal) {
		this.orderAmountTotal = orderAmountTotal;
	}
	public String getSystemCode() {
		return systemCode;
	}
	public void setSystemCode(String systemCode) {
		this.systemCode = systemCode;
	}
	public BigDecimal getDepositRate() {
		return depositRate;
	}
	public void setDepositRate(BigDecimal depositRate) {
		this.depositRate = depositRate;
	}
	public int getMaxDetailNo() {
		return maxDetailNo;
	}
	public void setMaxDetailNo(int maxDetailNo) {
		this.maxDetailNo = maxDetailNo;
	}
	public String getComments() {
		return comments;
	}
	public void setComments(String comments) {
		this.comments = comments;
	}
	public String getStorageTypeD() {
		return storageTypeD;
	}
	public void setStorageTypeD(String storageTypeD) {
		this.storageTypeD = storageTypeD;
	}
	public String getStorageTypeDLabel() {
		return storageTypeDLabel;
	}
	public void setStorageTypeDLabel(String storageTypeDLabel) {
		this.storageTypeDLabel = storageTypeDLabel;
	}
	public String getCustomerID() {
		return customerID;
	}
	public void setCustomerID(String customerID) {
		this.customerID = customerID;
	}
	public String getEmployeeNo() {
		return employeeNo;
	}
	public void setEmployeeNo(String employeeNo) {
		this.employeeNo = employeeNo;
	}
	public String getEmployeeName() {
		return employeeName;
	}
	public void setEmployeeName(String employeeName) {
		this.employeeName = employeeName;
	}
	public String getInvoiceCategory() {
		return invoiceCategory;
	}
	public void setInvoiceCategory(String invoiceCategory) {
		this.invoiceCategory = invoiceCategory;
	}
	public String getInvoiceCategoryLabel() {
		return invoiceCategoryLabel;
	}
	public void setInvoiceCategoryLabel(String invoiceCategoryLabel) {
		this.invoiceCategoryLabel = invoiceCategoryLabel;
	}
	public String getSettleCategory() {
		return settleCategory;
	}
	public void setSettleCategory(String settleCategory) {
		this.settleCategory = settleCategory;
	}
	public String getSettleCategoryLabel() {
		return settleCategoryLabel;
	}
	public void setSettleCategoryLabel(String settleCategoryLabel) {
		this.settleCategoryLabel = settleCategoryLabel;
	}
	public String getfAddress() {
		return fAddress;
	}
	public void setfAddress(String fAddress) {
		this.fAddress = fAddress;
	}
	public String getfAddressDetail() {
		return fAddressDetail;
	}
	public void setfAddressDetail(String fAddressDetail) {
		this.fAddressDetail = fAddressDetail;
	}
	public String getContacts() {
		return contacts;
	}
	public void setContacts(String contacts) {
		this.contacts = contacts;
	}
	public String getMobilePhone() {
		return mobilePhone;
	}
	public void setMobilePhone(String mobilePhone) {
		this.mobilePhone = mobilePhone;
	}
	public String getfPhone() {
		return fPhone;
	}
	public void setfPhone(String fPhone) {
		this.fPhone = fPhone;
	}
	public String getResultStatus() {
		return resultStatus;
	}
	public void setResultStatus(String resultStatus) {
		this.resultStatus = resultStatus;
	}
	public Date getRequirementDate() {
		return requirementDate;
	}
	public void setRequirementDate(Date requirementDate) {
		this.requirementDate = requirementDate;
	}

	public String getAttachments() {
		return attachments;
	}
	public void setAttachments(String attachments) {
		this.attachments = attachments;
	}
	public String getFactoryID() {
		return factoryID;
	}
	public void setFactoryID(String factoryID) {
		this.factoryID = factoryID;
	}
	public String getPaymentTerm() {
		return paymentTerm;
	}
	public void setPaymentTerm(String paymentTerm) {
		this.paymentTerm = paymentTerm;
	}
	public String getPaymentTermLabel() {
		return paymentTermLabel;
	}
	public void setPaymentTermLabel(String paymentTermLabel) {
		this.paymentTermLabel = paymentTermLabel;
	}
	public String getCurrency() {
		return currency;
	}
	public void setCurrency(String currency) {
		this.currency = currency;
	}
	public String getCurrencyLabel() {
		return currencyLabel;
	}
	public void setCurrencyLabel(String currencyLabel) {
		this.currencyLabel = currencyLabel;
	}
	public BigDecimal getExchangeRate() {
		return exchangeRate;
	}
	public void setExchangeRate(BigDecimal exchangeRate) {
		this.exchangeRate = exchangeRate;
	}
	public int getPrintTimes() {
		return printTimes;
	}
	public void setPrintTimes(int printTimes) {
		this.printTimes = printTimes;
	}

	public String getProjectNo() {
		return projectNo;
	}
	public void setProjectNo(String projectNo) {
		this.projectNo = projectNo;
	}

	public String getfProvince() {
		return fProvince;
	}
	public void setfProvince(String fProvince) {
		this.fProvince = fProvince;
	}
	public String getfCity() {
		return fCity;
	}
	public void setfCity(String fCity) {
		this.fCity = fCity;
	}
	public String getfZone() {
		return fZone;
	}
	public void setfZone(String fZone) {
		this.fZone = fZone;
	}
	public String getfAddressName() {
		return fAddressName;
	}
	public void setfAddressName(String fAddressName) {
		this.fAddressName = fAddressName;
	}


	public String getfAddressID() {
		return fAddressID;
	}
	public void setfAddressID(String fAddressID) {
		this.fAddressID = fAddressID;
	}
	public String getStorageType() {
		return storageType;
	}
	public void setStorageType(String storageType) {
		this.storageType = storageType;
	}
	public String getStorageTypeLabel() {
		return storageTypeLabel;
	}
	public void setStorageTypeLabel(String storageTypeLabel) {
		this.storageTypeLabel = storageTypeLabel;
	}
	public String getStorageID() {
		return storageID;
	}
	public void setStorageID(String storageID) {
		this.storageID = storageID;
	}
	public String getStorageNo() {
		return storageNo;
	}
	public void setStorageNo(String storageNo) {
		this.storageNo = storageNo;
	}
	public String getStorageName() {
		return storageName;
	}
	public void setStorageName(String storageName) {
		this.storageName = storageName;
	}
	public String getFloorNo() {
		return floorNo;
	}
	public void setFloorNo(String floorNo) {
		this.floorNo = floorNo;
	}
	public String getsLoginName() {
		return sLoginName;
	}
	public void setsLoginName(String sLoginName) {
		this.sLoginName = sLoginName;
	}
	public String getOrderType() {
		return orderType;
	}
	public void setOrderType(String orderType) {
		this.orderType = orderType;
	}
	public String getOrderTypeLabel() {
		return orderTypeLabel;
	}
	public void setOrderTypeLabel(String orderTypeLabel) {
		this.orderTypeLabel = orderTypeLabel;
	}
	public int getPackFlag() {
		return packFlag;
	}
	public void setPackFlag(int packFlag) {
		this.packFlag = packFlag;
	}

	public int getIsNeedLogistics() {
		return isNeedLogistics;
	}
	public void setIsNeedLogistics(int isNeedLogistics) {
		this.isNeedLogistics = isNeedLogistics;
	}
	public String getPaymentStatus() {
		return paymentStatus;
	}
	public void setPaymentStatus(String paymentStatus) {
		this.paymentStatus = paymentStatus;
	}
	public String getPaymentStatusLabel() {
		return paymentStatusLabel;
	}
	public void setPaymentStatusLabel(String paymentStatusLabel) {
		this.paymentStatusLabel = paymentStatusLabel;
	}

	public BigDecimal getDiscountAmount() {
		return discountAmount;
	}
	public void setDiscountAmount(BigDecimal discountAmount) {
		this.discountAmount = discountAmount;
	}
	public BigDecimal getFreightAmount() {
		return freightAmount;
	}
	public void setFreightAmount(BigDecimal freightAmount) {
		this.freightAmount = freightAmount;
	}
	public BigDecimal getDiscountRate() {
		return discountRate;
	}
	public void setDiscountRate(BigDecimal discountRate) {
		this.discountRate = discountRate;
	}
	public String getGuestNumber() {
		return guestNumber;
	}
	public void setGuestNumber(String guestNumber) {
		this.guestNumber = guestNumber;
	}
	public BigDecimal getActualAmount() {
		return actualAmount;
	}
	public void setActualAmount(BigDecimal actualAmount) {
		this.actualAmount = actualAmount;
	}
	public BigDecimal getDiscountCash() {
		return discountCash;
	}
	public void setDiscountCash(BigDecimal discountCash) {
		this.discountCash = discountCash;
	}

	public int getRetailFlag() {
		return retailFlag;
	}
	public void setRetailFlag(int retailFlag) {
		this.retailFlag = retailFlag;
	}
	public Timestamp getPaidDatetime() {
		return paidDatetime;
	}
	public void setPaidDatetime(Timestamp paidDatetime) {
		this.paidDatetime = paidDatetime;
	}
	public String getSsID() {
		return ssID;
	}
	public void setSsID(String ssID) {
		this.ssID = ssID;
	}
	public int getOrderStatus() {
		return orderStatus;
	}
	public void setOrderStatus(int orderStatus) {
		this.orderStatus = orderStatus;
	}
	public String getOrderStatusLabel() {
		return orderStatusLabel;
	}
	public void setOrderStatusLabel(String orderStatusLabel) {
		this.orderStatusLabel = orderStatusLabel;
	}



}
